Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add ec2:DeregisterImage permission to pre-flight checks #1340

Merged
merged 1 commit into from
Feb 28, 2019

Conversation

joelddiaz
Copy link
Contributor

Now that the installer creates the encrypted AMI, we also need the ability to delete the AMI on cluster destroy. Otherwise we get these errors:

DEBUG deleting arn:aws:ec2:us-east-1:125931421481:image/ami-0c82315f404e184a8: UnauthorizedOperation: You are not authorized to perform this operation.
status code: 403, request id: b57ae4d9-5c9c-4e69-a7de-81f03eea3b15

Add ec2:DeregisterImage to the list of permissions the installer needs.

Now that the installer creates the encrypted AMI, we also need the ability to delete the AMI on cluster destroy. Otherwise we get these errors:

DEBUG deleting arn:aws:ec2:us-east-1:125931421481:image/ami-0c82315f404e184a8: UnauthorizedOperation: You are not authorized to perform this operation.
        status code: 403, request id: b57ae4d9-5c9c-4e69-a7de-81f03eea3b15

Add ec2:DeregisterImage to the list of permissions the installer needs.
@openshift-ci-robot openshift-ci-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Feb 28, 2019
@abhinavdahiya
Copy link
Contributor

/assign @wking

@wking
Copy link
Member

wking commented Feb 28, 2019

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Feb 28, 2019
@openshift-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: joelddiaz, wking

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 28, 2019
@openshift-merge-robot openshift-merge-robot merged commit 2b65c9d into openshift:master Feb 28, 2019
@joelddiaz joelddiaz deleted the deregisterimage branch January 6, 2020 15:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants